package com.ssm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.entity.Mapother;
import com.ssm.entity.Menu;
import com.ssm.mapper.Menumapper;

@Service
public class MenuServiceImpl implements MenuService {
	@Autowired
	private Menumapper menumapper;

	@Override
	public List<Menu> getMenuByPid(int id) {
		List<Menu> mlist = menumapper.getMenuByPid(id);
		return mlist;
	}

	@Override
	public List<Menu> getMenuByPid2(int id, int uid) {
		List<Menu> maplist=menumapper.getMenuByPid2(id,uid);
		return maplist;
	}

}
